package com.netdisk.service.impl;

import com.netdisk.dto.LoadAllFileDto;
import com.netdisk.mapper.FileMapper;
import com.netdisk.service.FileService;
import com.netdisk.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class FileServiceImpl implements FileService {
    @Autowired
    private FileMapper fileMapper;
    @Override
    public Result<List<LoadAllFileDto>> loadAllFile(Integer folderId) {
        List<LoadAllFileDto> list = fileMapper.list(folderId);
        return Result.success(list);
    }
}
